﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace _0812045
{
    public class MenuEntrySprite : BaseSprite
    {
        public MenuEntrySprite(Texture2D[] _inputtexture2d)
        {
            texture2d = _inputtexture2d;
            itexture2d = 0;
        }

        private Vector2 _origin;

        public Vector2 origin
        {
            get { return _origin; }
            set { _origin = value; }
        }

        private float _scaleWhenChosen;

        public float scaleWhenChosen
        {
            get { return _scaleWhenChosen; }
            set { _scaleWhenChosen = value; }
        }

        private Color _color;

        public Color color
        {
            get { return _color; }
            set { _color = value; }
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(_texture2d[_itexture2d], new Vector2(_x, _y), new Rectangle(0, 0, _texture2d[_itexture2d].Width, _texture2d[_itexture2d].Height), color, 0, origin, scale * scaleWhenChosen, SpriteEffects.None, 0);
        }
    }
}
